/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-30 09:59:20
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 10:01:09
 */

import { VarifyListGetResultModel, VarifyPageParms, VerifyDetailParam } from './model/orderModel';
import { defHttp } from '/@/utils/http/axios';

import { BasicResult } from '../model/baseModel';

enum Api {
  VarifyList = '/order.verify/list',
  VarifyDetail = '/order/verifyDetail',
}

/**
 * 获取核销记录
 */
export const getVerifyList = (params: VarifyPageParms) =>
  defHttp.get<VarifyListGetResultModel>({ url: Api.VarifyList, params });

/**
 * 获取订单详情
 * @param params
 * @returns
 */
export const verifyDetail = (params: VerifyDetailParam) =>
  defHttp.get<BasicResult>({ url: Api.VarifyDetail, params });
